<template>
	<view :style="{'background-color': red}" @click="tohaha">
		this is HELLO components
		<slot  a="love"></slot>
	</view>
</template>

<script>
	export default {
		name:"Hello",
		data() {
			return {
				red:'red'
			};
		},
		methods:{
			tohaha(){
				uni.$emit("haha")
			}
		}
	}
</script>

<style>

</style>
